package com.business.dao;

import com.business.domain.CarSeries;
import com.business.domain.CarSeriesExample;
import com.business.domain.CarSeriesVo;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository("carSeriesMapper")
public interface CarSeriesMapper {
    int countByExample(CarSeriesExample example);

    int deleteByExample(CarSeriesExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(CarSeries record);

    int insertSelective(CarSeries record);

    List<CarSeriesVo> selectByExample(CarSeriesExample example);

    CarSeriesVo selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CarSeries record, @Param("example") CarSeriesExample example);

    int updateByExample(@Param("record") CarSeries record, @Param("example") CarSeriesExample example);

    int updateByPrimaryKeySelective(CarSeries record);

    int updateByPrimaryKey(CarSeries record);
    /**
     * 根据品牌id 查询有model的车系
     */
    List<CarSeriesVo> getSeriesListByBrandIdAndModelId(Integer brandId);
}